]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
st-widget: Don't add hidden actors to the paint volume
authorAdel Gadllah <adel.gadllah@gmail.com>
Fri, 1 Mar 2013 17:52:02 +0000 (18:52 +0100)
committerAdel Gadllah <adel.gadllah@gmail.com>
Fri, 1 Mar 2013 18:13:22 +0000 (19:13 +0100)
We are not painting them anyway.

src/st/st-widget.c

index 65de2722b828ca744b8965f24a46f85197b911f1..42992ece79fa3a3b39b0a4e0c136c1cec8000157 100644 (file)
@@ -791,6 +791,9 @@ st_widget_get_paint_volume (ClutterActor *self,
         {
           const ClutterPaintVolume *child_volume;
 
+          if (!CLUTTER_ACTOR_IS_VISIBLE (child))
+            continue;
+
           child_volume = clutter_actor_get_transformed_paint_volume (child, self);
           if (!child_volume)
             return FALSE;